package com.platform.service;

import com.platform.dao.ApiCollageMapper;
import com.platform.entity.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.*;

//中大团队扩展
/**
 * @author wuf
 * @date 2018-11-23
 */

@Service
public class ApiCollageService{
    @Autowired
    private ApiCollageMapper collageDao;


    public CollageVo queryObject(Integer id) {
        return collageDao.queryObject(id);
    }


    public List<CollageVo> queryList(Map<String, Object> map) {
        return collageDao.queryList(map);
    }

    public List<CollageVo> queryCollageList() {
        return collageDao.queryCollageList();
    }


    public int queryTotal(Map<String, Object> map) {
        return collageDao.queryTotal(map);
    }


    public int save(CollageVo collage) {
        return collageDao.save(collage);
    }


    public int update(CollageVo collage) {
        return collageDao.update(collage);
    }


    public int delete(Integer id) {
        return collageDao.delete(id);
    }

    public int deleteBatch(Integer[] ids) {
        return collageDao.deleteBatch(ids);
    }

    public CollageVo queryObjectByGoodsId(Integer goodsId) { return collageDao.queryObjectByGoodsId(goodsId); }
}
